package org.prem.varargs;

public class TestBird {

	public static void main(String[] args){
		Bird b1 = new Bird();
		Bird b2 = new HummingBird();
		Bird b3 = (HummingBird)b2;
		HummingBird b4 = new HummingBird();
		
		b1.fly();
		b2.fly();
		b3.fly();
		b4.fly();
		b4.test();
	}
}
